package me.zhengjie.modules.service.impl.intell;

import lombok.RequiredArgsConstructor;
import me.zhengjie.modules.domain.intellectual.Qualification;
import me.zhengjie.modules.repository.intellectual.EnterpriseQuaMapper;
import me.zhengjie.modules.service.intell.QuaService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("QuaService")
@RequiredArgsConstructor
public class QuaServiceImpl implements QuaService {
    private final EnterpriseQuaMapper quaMapper;

    @Override
    public List<Qualification> queryEnterpriseQuaForPageByName(Map<String,Object> map) {
        return quaMapper.selectEnterpriseQuaForPageByName(map);
    }

    @Override
    public int queryEnterpriseQuaByNameToTotal(Map<String, Object> map) {
        return quaMapper.selectEnterpriseQuaByNameToTotalOnMap(map);
    }
}
